package com.vy.stl.service;

import com.github.pagehelper.PageInfo;
import com.vy.stl.entity.Coach;

import java.util.List;

/**
 * @create: 2025/08/27 17:09
 * @description:
 */
public interface CoachService {

    /**
     * 查询教练列表
     * @param coach
     * @return
     */
    List<Coach> search(Coach coach);

    /**
     * 分页查询
     * @param pageNum
     * @param pageSize
     * @param coach
     * @return
     */
    PageInfo searchByPage(Integer pageNum, Integer pageSize, Coach coach);

    /**
     * 根据手机号查询教练信息
     * @param phone
     * @return
     */
    Coach getCoachByPhone(String phone);

    /**
     * 添加教练员
     * @param coach
     * @return
     */
    int add(Coach coach);

    /**
     * 修改教练员信息
     * @param coach
     */
    int edit(Coach coach) throws Exception;

    /**
     * 删除教练员
     * @param id
     * @return
     */
    int remove(Integer id) throws Exception;
}
